﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IStateAwareViewModel.cs" company="Marcin Jastrzebski">
//   Copyright (c) Marcin Jastrzebski (marcin@marcinj.net)
// </copyright>
// <summary>
//   State-aware view model.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace mPassRT.Common
{
    using System.Collections.Generic;

    /// <summary>State-aware view model.</summary>
    public interface IPageViewModel
    {
        #region Public Methods and Operators

        /// <summary>The load state.</summary>
        /// <param name="navigationParameter">The navigation parameter.</param>
        /// <param name="state">The state.</param>
        void LoadState(object navigationParameter, Dictionary<string, object> state);

        /// <summary>The save state.</summary>
        /// <param name="state">The state.</param>
        void SaveState(Dictionary<string, object> state);

        #endregion
    }
}